package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@TableName("t_grade")
public class GradeBean {
    @TableId(value = "pk_gradeId", type = IdType.AUTO)
    private Integer id;
    @TableField("g_name")
    private String name;
    @TableField("g.context")
    private String context;

    @Override
    public String toString() {
        return "GradeBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
               "}\n";
    }
}
